//
//  UITouchView.m
//  PlayingWithMaps
//
//  Created by Jaime on 6/25/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "UITouchView.h"


@implementation UITouchView


- (id)initWithFrame:(CGRect)frame {
    if ((self = [super initWithFrame:frame])) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
	[self showAlert:@"touch"];
}


-(void) showAlert:(NSString*)msg {
	UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"alert" message:msg delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil];
	[alert show];
	[alert release];
	
}

- (void)dealloc {
    [super dealloc];
}


@end
